<!DOCTYPE HTML>
<html lang="zh-CN">
<head>
	<meta charset="{DT_CHARSET}">
    <title>在线咨询 - {$DT[sitename]}</title>
	<link rel="stylesheet" href="{CSS_URL}common.css"/>
	<link rel="stylesheet" href="{CSS_URL}ask.css"/>
    <script src="{JS_URL}global.js"></script>
    <script src="{JS_URL}libs/seajs/2.2.0/seajs.js"></script>
    <script src="{JS_URL}libs/config.js"></script>
</head>
<body>
<div class="layout960 clear">
	<div class="lv-header">
		<h1 class="logo">
			<a href="{SITE_URL}">{$DT[sitename]}</a>
		</h1>
		<div class="lv-adheader">
			{php $tags = Template::tag("table=ad&condition=pid=327 and status=3&areaid=$areaid&pagesize=5&order=listorder ASC&template=null")}
			{if $tags}
			<ul>
				{loop $tags $tag}
				<li><a href="{$tag[url]}"><img src="{$tag[image_src]}"></a></li>
				{/loop}
			</ul>
			{/if}
		</div>
	</div>
</div>
<div class="chat-wrapper">
    <div class="chat-box clear">
        <div class="left">
            <div class="sel-wrapper main">
                <div class="box">
                    <!-- content -->
                    <div class="main-content">
                        <p class="intro">
                            请输入问题，这是自动应答<br />
                            如果没有合适的答案，您可以点击右侧的人工服务与在线客服联系
                        </p>
                        <div id="question" class="question"></div>
                        <textarea name="inputQuestion" id="inputQuestion"></textarea>
	                    <input type="hidden" name="kw" id="kw"  value="{$kw}"/>
                        <a id="submitQuestion" class="btn-big ask" href="javascript:void(0);">
	                        <span> 查询 <br>[Ctrl+Enter]</span>
                        </a>
                    </div>
                </div>
            </div>
            <div class="sel-wrapper area">
                <div class="box">
                    <div class="content">
                        <h3 class="usergroup">选择提问/加盟服务商类型</h3>
                        <div class="cate-content">
	                        <span><input type="radio" name="modeid" value="0" checked="checked" id="modeid_0"/> <label for="modeid_0">全部</label></span><br/>
	                        {loop $comCate $k $q}
		                    <span><input type="radio" name="modeid" value="{$k}" id="modeid_{$k}"/> <label for="modeid_{$k}">{$q[catname]}</label></li></span>
	                        {/loop}
                        </div>
                        <h3 class="usergroup">本地区加盟服务商</h3>
                        <div id="area" class="area-content">
		                    <input type="hidden" id="area-field" name="area-field" style="display:static;"/>
                        </div>
                        <div class="button-ctr">
	                        <a style="margin-left: 25px;" id="supplier" href="javascript:void(0);" class="btn-small">点击查看</a>
	                        <a style="margin-left: 20px;" href="javascript:window.open('{url('ask/online')}', '_blank', 'width=645,height=550');void(0);" class="btn-small">人工服务</a>
                        </div>
                    </div>
                </div>
            </div>
            <div class="sel-wrapper sales">
                <div class="box">
                    <div id="salers" class="content">
	                    <ul>
	                    {loop $servicer $v}
		                    <a href="{url('company/show', array('id'=> $v['id']))}" target="_blank">{$v[company]}</a>
	                    {/loop}
		                </ul>
                    </div>
                </div>
            </div>
        </div>
        <div class="right">
            <div class="sel-wrapper ads">
                <div class="box">
                    <div class="ad-right" id="adRight">
                    {php $tags = Template::tag("table=ad&condition=pid=328 and status=3&areaid=$areaid&pagesize=7&order=listorder ASC&template=null")}
                    {if $tags}
                        <ul>
		                    {loop $tags $tag}
                                <li><a href="{$tag[url]}"><img src="{$tag[image_src]}"></a></li>
		                    {/loop}
                        </ul>
                    {/if}
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>

<!--咨询对话框-->
<div id="dialog" title="详情" class="easyui-dialog" style="padding:10px;" data-options="closed:'true',width:450,modal:'true'">
    <h3></h3>
    <p></p>
</div>
<!--咨询对话框 end-->

<script type="text/javascript">
	seajs.use(['mod-area','mod-live','mod-url','lm-util','bgiframe'], function(area){
//        var area =new area();
        area.init("{PUBLIC_URL}data/area.json");
		var config = {
			'conId' : "area",
			'step' : 4,
			'name1' : "location_link[prov]",
			'name2' : "location_link[city]",
			'name3' : "location_link[town]",
			'name4' : "location_link[vell]"
		};
		<!--{if $lAreaId}-->
			config.selValue = <!--{$AREA[$lAreaId][fullcode]}-->;
		<!--{/if}-->

		area.makeSelect(config);
		area.changeArea("area");
	});
</script>
</body>
</html>